<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

require_once '../class/chatroom.class.php';

$chatroom_id = $_REQUEST['chatroom_id'];
$user_id = $_REQUEST['user_id'];
$message_text = $_REQUEST['message_text'];

//echo $chatroom_id;
//echo $user_id;
//echo $message_text;

Chatroom::sendMessage($chatroom_id, $user_id, $message_text);

?>